import React from 'react';
import {BrowserRouter as Router, Route, Switch} from 'react-router-dom'
import Admin from './Admin/Admin'
import Login from './Login/Login'
import 'antd/dist/antd.css'

function App() {
  return (
    <div className="App">
      <Router>
        <Switch>
          <Route path='/login' component={Login}/>
          <Route path='/' component={Admin}/>
        </Switch>
      </Router>
    </div>
  );
}

export default App;
